<?php if($news['all']){?>

<div
	class="panel panel-info">
	<!-- Default panel contents -->
	<div class="panel-heading title text-danger"><?= lang('news.news.and.events');?></div>
	

	<!-- List group -->
	<ul class="list-group">
		<?php foreach ($news['all'] as $news):?>
		<li class="list-group-item clearfix">

			<div class="col-lg-12">
				<p>
					<strong><a class="text-black" href="<?= base_url();?>news/<?= $this->commoncall->url($news->title);?>-<?= $news->id;?>"><?= $news->title; ?>
					</a> </strong>
				</p>
				
				<small><?= substr($news->description,0,250);?></small>
				<p>
				<div class="pull-right small text-muted">
					<small><?= $news->posted_on;?></small>
				</div>
				</p>
			</div>
		</li>

		
		<?php endforeach;}?>
	</ul>
</div>





<style>
.modal-body {
    position: relative;
    overflow-y: auto;
    max-height: 200px;
    padding: 15px;
}
</style>
	
	<form class="row form" role="form" name="post_contact_form"
				id="post_contact_form" method="POST">
				
	<div class="modal fade" id="myContactModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		
		<div class="modal-dialog">
    <div class="modal-content">
    
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
       <h4 class="modal-title" id="myContactModalLabel">Contact us </h4>
      </div>
      <div class="modal-body">
      
       <span class="pull-right text-danger" id="contact_alert"></span>
				</span>
				
				<div class="form-group">
					<label for="name">Name </label> <input
						type="name" class="form-control" id="contactname"
						name="contactname"  placeholder="Enter your full name">
				</div>
				<div class="form-group">
					<label for="email_address">Email </label> <input
						type="email" class="form-control" id="contactemail"
						name=contactemail placeholder="Enter your Email">
				</div>
				<div class="form-group">
					<label for="name">Location </label> <input
						type="location" class="form-control" id="location"
						name="location"  placeholder="Enter your full address">
				</div>
				<div class="form-group">
					<label for="name">Purpose </label> <input
						type="purpose" class="form-control" id="purpose"
						name="purpose"  placeholder="Enter your purpose">
				</div>
				
       <div class="form-group">
					<label for="mail_description">Description ( Minimum 50
						character )</label>
					<textarea class="full-width text" cols="64" name="description"
						id="description" rows="5"></textarea>
				</div>
       
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary" id="btn_contact_submit">Save</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
 </div><!-- /.modal -->
</form>


